package main

import (
	"fmt"
)

func f(n int) int {
	if n == 10 {
		return 1
	}else {
		return (f(n+1)+1) * 2
	}
}
func main() {
	fmt.Println(f(1))
}
